import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
  {
    title: '主键',
    dataIndex: 'applyInvoiceId',
    width: 200,
  },
  {
    title: '申请人Id',
    dataIndex: 'applyUserId',
    width: 200,
  },
  {
    title: '用户产品Id',
    dataIndex: 'userGoodsId',
    width: 200,
  },
  {
    title: '发票类型（1电子发票，2专票,3普票）',
    dataIndex: 'invoiceType',
    width: 200,
  },
  {
    title: '抬头类型',
    dataIndex: 'invoiceTitleType',
    width: 200,
  },
  {
    title: '抬头名称',
    dataIndex: 'invoiceTitleName',
    width: 200,
  },
  {
    title: '开票金额',
    dataIndex: 'invoiceAmount',
    width: 200,
  },
  {
    title: '开票状态（0待开票,1已开票）',
    dataIndex: 'invoiceState',
    width: 200,
  },
  {
    title: '开票日期',
    dataIndex: 'invoiceDate',
    width: 200,
  },
  {
    title: '开票信息',
    dataIndex: 'invoiceRemark',
    width: 200,
  },
  {
    title: '是否删除',
    dataIndex: 'deleted',
    width: 200,
  },
  {
    title: '更新人',
    dataIndex: 'updateUser',
    width: 200,
  },
  {
    title: '更新时间',
    dataIndex: 'updateTime',
    width: 200,
  },
  {
    title: '创建人',
    dataIndex: 'createUser',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    label: '主键',
    field: 'applyInvoiceId',
    component: 'Input',
    required: true,
  },
  {
    label: '申请人Id',
    field: 'applyUserId',
    component: 'Input',
    required: true,
  },
  {
    label: '用户产品Id',
    field: 'userGoodsId',
    component: 'Input',
    required: true,
  },
  {
    label: '发票类型（1电子发票，2专票,3普票）',
    field: 'invoiceType',
    component: 'Input',
    required: true,
  },
  {
    label: '抬头类型',
    field: 'invoiceTitleType',
    component: 'Input',
    required: true,
  },
  {
    label: '抬头名称',
    field: 'invoiceTitleName',
    component: 'Input',
    required: true,
  },
  {
    label: '开票金额',
    field: 'invoiceAmount',
    component: 'Input',
    required: true,
  },
  {
    label: '开票状态（0待开票,1已开票）',
    field: 'invoiceState',
    component: 'Input',
    required: true,
  },
  {
    label: '开票日期',
    field: 'invoiceDate',
    component: 'Input',
    required: true,
  },
  {
    label: '开票信息',
    field: 'invoiceRemark',
    component: 'Input',
    required: true,
  },
  {
    label: '是否删除',
    field: 'deleted',
    component: 'Input',
    required: true,
  },
  {
    label: '更新人',
    field: 'updateUser',
    component: 'Input',
    required: true,
  },
  {
    label: '更新时间',
    field: 'updateTime',
    component: 'Input',
    required: true,
  },
  {
    label: '创建人',
    field: 'createUser',
    component: 'Input',
    required: true,
  },
  {
    label: '创建时间',
    field: 'createTime',
    component: 'Input',
    required: true,
  },
];
